package com.liujun.spring4x.demo.web.vo.restful;

/**
 * @author liujun
 * @version 0.0.1
 * @date 2018/10/22
 */
public class ResultInfo {

  /** 返回提示信息 string 保存成功 */
  private String message;

  /** 返回标识符(true|false) boolean true执行成功 false执行失败 */
  private boolean success;

  /** 返回数据对象 Object 保存的记录数 */
  private Object data;

  /** 返回码 string 200 */
  private int resultCode;

  /** 时间戳 number */
  private long timestamp;

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public Object getData() {
    return data;
  }

  public void setData(Object data) {
    this.data = data;
  }

  public int getResultCode() {
    return resultCode;
  }

  public void setResultCode(int resultCode) {
    this.resultCode = resultCode;
  }

  public long getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(long timestamp) {
    this.timestamp = timestamp;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("ResultInfo{");
    sb.append("message='").append(message).append('\'');
    sb.append(", success=").append(success);
    sb.append(", data=").append(data);
    sb.append(", resultCode=").append(resultCode);
    sb.append(", timestamp=").append(timestamp);
    sb.append('}');
    return sb.toString();
  }
}
